<!doctype html>
<html lang="zh">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />
	<title>{{$data.title}}_会员登陆</title>
	<meta name="keywords" content="{{$data.title}}" />
	<meta name="description" content="{{$data.title}}" />
	<meta name="LinkArtifact" content="7000c2fd0c1eff6fc7c2d4b66ac23916">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<!-- QQ互联 -->
	<meta property="qc:admins" content="3566762547627031606375" />
	<link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

	<style type="text/css">
		body {
			_behavior: url({{$smarty.const.APP_URL}}resource/htc/csshover.htc);
		}
	</style>

	<link href="{{$smarty.const.APP_URL}}templates/default/css/base.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/home_header.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/home_login.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/index-new.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
	<link href="{{$smarty.const.APP_URL}}templates/default/css/spot.css" rel="stylesheet" type="text/css">
	<!--[if IE 7]>
	<link rel="stylesheet" href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome-ie7.min.css">
	<![endif]-->
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/html5shiv.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/respond.min.js"></script>
	<![endif]-->
	<!--[if IE 6]>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/IE6_PNG.js"></script>
	<script>
		DD_belatedPNG.fix('.pngFix');
	</script>
	<script>
		// <![CDATA[
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand))
try{
document.execCommand("BackgroundImageCache", false, true);
   }
catch(e){}
// ]]>
</script>
<![endif]-->
	<script>
		var COOKIE_PRE = 'BC18_';var _CHARSET = 'utf-8';var SITEURL = '{{$smarty.const.SELF_URL}}';var RESOURCE_URL = '{{$smarty.const.APP_URL}}data/resource';var TEMPLATES_URL = '{{$smarty.const.APP_URL}}templates/default';
	</script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/common.js" charset="utf-8"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/ui/$.ui.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.validation.min.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.masonry.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>、
<body style="min-width: 1200px;">
{{include file="{{$smarty.const.APP_PATH}}Home/View/Public/header.html"}}
<div class="header-wrap-new" style="padding-top:10px;">
	<header class="public-head-layout-new wrapper pr">
		<!--logo图，470*110 改名字-->
		<h1 class="site-logo">
			<a href="{{$smarty.const.SELF_URL}}" target="_blank"><img src="{{$smarty.const.APP_URL}}data/upload/logo/process.png"></a>
		</h1>
		<div class="tcs pa">
			<i class="tel" onclick="showImage();"></i>
			<i class="code" onclick="showPic();"></i>
		</div>
	</header>
</div>
{{include file="{{$smarty.const.APP_PATH}}Home/View/Public/nav.html"}}

<!--全屏图，可多张 ，改名字-->
<div style="width:100% !important; padding:0px; margin:0px; background:url({{$smarty.const.APP_URL}}templates/default/images/cs/jg_01.jpg) top center; height:326px;"></div>
<div style="width:100% !important; padding:0px; margin:0px; background:url({{$smarty.const.APP_URL}}templates/default/images/cs/jg_02.jpg) top center; height:401px;"></div>
<div style="width:100% !important; padding:0px; margin:0px; background:url({{$smarty.const.APP_URL}}templates/default/images/cs/jg_03.jpg) top center; height:483px;"></div>
<!--1200主图-->
<div class="header-wrap-new" style="background:#FFF; height:10px;"></div>
{{include file="{{$smarty.const.APP_PATH}}Home/View/Public/footer.html"}}
<!-- End Save for Web Slices -->
<div id="mask" class="mask"></div>
<div class="content">
	<p style="font-size: 15px;font-weight: bold;border-bottom: 1px solid #ccc;">我要接单</p>
	<div>
		<table class="content_tab">
			<tr>
				<td width="25%">标题：</td>
				<td id="process_title" width="25%">Loading...</td>
				<td width="25%">发布人：</td>
				<td id="member_truename">Loading...</td>
			</tr>
			<tr>
				<td>加工类型：</td>
				<td id="process_type">Loading...</td>
				<td>加工产品：</td>
				<td id="process_product">Loading...</td>
			</tr>
			<tr>
				<td>加工原料：</td>
				<td id="process_material">Loading...</td>
				<td>加工量：</td>
				<td id="process_num">Loading...</td>
			</tr>
			<tr>
				<td>总价：</td>
				<td id="process_price">Loading...</td>
				<td>发布时间：</td>
				<td id="process_time">Loading...</td>
			</tr>
			<tr>
				<td>留言：</td>
				<td colspan="3">
					<textarea id="process_desc" name="" style="width: 230px;height: 100px;resize: none;"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="4" style="color: #F94101;">
					您好，请在留言栏填写留言并提交，我们的工作人员会在2小时内与您联系，谢谢。
				</td>
			</tr>
			<tr>
				<td colspan="3"></td>
				<td align="right">
					<input id="member_id" value="{{$member_id}}" type="hidden">
					<input id="process_id" value="" type="hidden">
					<input id="submit" type="button" value="提交" style="width: 60px;height: 30px;" />
				</td>
			</tr>
		</table>
		<div class="detail-sider">
			<p style="font-weight: bold;">我的交易员</p>
			<div style="margin-top: 10px;">
				<img src="{{$smarty.const.APP_URL}}templates/default/images/mall/spot_kefu.png" style="float: left;width: 103px;height: 103px;">
				<div style="padding: 30px 10px;float: left;">
					<p style="font-size: 13px;">您好，我是客服</p>
					<p style="font-size: 13px;">很高兴为您服务！</p>
				</div>
			</div>
			<div style="clear: both;"></div>
			<table style="margin-top: 10px;">
				<tr height="30px">
					<td width="50px" height="30px">工&nbsp&nbsp&nbsp&nbsp号：</td>
					<td>001</td>
				</tr>
				<tr height="30px">
					<td>姓&nbsp&nbsp&nbsp&nbsp名：</td>
					<td>客服</td>
				</tr>
				<tr height="30px" height="30px">
					<td>Q&nbsp&nbsp&nbsp&nbsp Q：</td>
					<td>QQ交谈</td>
				</tr>
				<tr height="30px">
					<td>座&nbsp&nbsp&nbsp&nbsp机：</td>
					<td>0735-2659812</td>
				</tr>
				<tr height="30px">
					<td>户&nbsp&nbsp&nbsp&nbsp名：</td>
					<td>湖南省郴州市金福银贵科技有限公司</td>
				</tr>
				<tr height="30px">
					<td>账&nbsp&nbsp&nbsp&nbsp号：</td>
					<td>9558 8088 8808 888</td>
				</tr>
				<tr height="30px">
					<td>开户行：</td>
					<td>建设银行白露塘支行</td>
				</tr>
			</table>
		</div>
	</div>
	<span id="close">x</span>
</div>
<!-- End Save for Web Slices -->

<!-- 选项卡js -->
<script type="text/javascript">
	//撮合，点击弹出窗口
	$(function(){
		$(".cuohe").click(function(){
			//AJAX获取数据
			var process_id=this.id;
//			var num=$('#num_'+process_id).val(); //数量
			var url='/home/process/get_ajax_data';
			$.ajax({
				url: url ,
				data:{
					process_id:process_id
				},
				type:'POST',
				cache:false,
				dataType:'json',
				success:function(data) {
					if(data.msg =="ok" ){
						//显示窗口
						$("#mask").css({
							"height":$(document).height(),
							"width":$(document).width()
						}).show();
						$(".content").show();
//						显示数据
						$('#process_title').html(data.info.process_title);  //标题
						$('#member_truename').html(data.info.member_truename);  //用户名
						$('#process_type').html(data.info.process_type_id);  //加工类型
						$('#process_product').html(data.info.process_product);  //加工产品
						$('#process_material').html(data.info.process_material);  //加工原料
						$('#process_num').html(data.info.process_num);  //加工量
						$('#process_price').html(data.info.process_price);  //价格
						$('#process_time').html(data.info.process_time);  //发布时间
						//以下用于提交
						$('#process_id').val(process_id); //加工ID
					}else{
						alert(data.msg);
						window.location.href='/home/user/login';return;
					}
				},
				error : function() {
					alert("异常！");
				}
			});
		});
		//关闭
		$("#close").click(function(){
			$(".content").hide();
			$("#mask").hide();
		});
		//提交 写入采购表及撮合表
		$("#submit").click(function(){
			var member_id=$('#member_id').val();  //用户ID
			var process_id=$('#process_id').val();
			var message_content=$('#process_desc').val();
			//alert(purchase_desc);return;
			var url='/home/process/submit_ajax_data';
			$.ajax({
				url: url ,
				data:{
					member_id:member_id,
					process_id:process_id,
					message_content:message_content
				},
				type:'POST',
				cache:false,
				dataType:'json',
				success:function(data) {
//					alert(data);
					if(data.msg =="ok" ){
						alert('提交成功');
						$(".content").hide();
						$("#mask").hide();
						return;
					}else{
						alert(data.msg);
						window.location.href='/home/user/login';return;
					}
				},
				error : function() {
					alert("异常！");
				}
			});
		});
	});
	//下拉列表 跳转 排序
	$(document).ready(function () {
		$("#sort").bind("change",function(){
			var url=$(this).val();
			//alert(url);return;
			window.location.href=url;
		});
	});



</script>
</body>
</html>